//------------------------------------------------------------------------------------
#include "CSouris.h"
#include "common.h"
//------------------------------------------------------------------------------------
CSouris::CSouris(void) : CSprite() {
    image=QImage(":/snake/images/souris.png");
    visible = false;
}
//------------------------------------------------------------------------------------
void CSouris::draw(QPainter *painter, int idxImage) {
	QRect reg(idxImage*CELL_WIDTH, 0, CELL_WIDTH, CELL_HEIGHT);
	CSprite::draw(painter, image.copy(reg));
}
//------------------------------------------------------------------------------------


